import os
import sys
import subprocess


def open_itksnape(exe_file_param):
    """
    opend dicom image with itksnap
    :param exe_file_param: ['xxx.exe', 'param']
    :return:
    """
    subprocess.run(exe_file_param)


if __name__ == "__main__":
    exe_file = "C:\\Program Files\\ITK-SNAP 3.8\\bin\\ITK-SNAP.exe"
    param = "E:\\medical\\breast\\datasets\\0000001_convert.dcm"
    re = open_itksnape([exe_file, param])

    print(re)